﻿using System;
using System.Collections.Generic;
using DevelopTool.Model.CommonModels;
using LiteDB;

namespace DevelopTool.Model.RemoteModels
{
    /// <summary>
    /// 远程连接实体
    /// </summary>
    public class Remote : ManageMenu
    {
        /// <summary>
        /// 远程类型：1=RDP，2=SSH
        /// </summary>
        public string RemoteType { get; set; } = "RDP";

        /// <summary>
        /// 配置集合，不存数据库
        /// </summary>
        [BsonIgnore]
        public List<RdpConfig> RdpConfigs { get; set; }


        /// <summary>
        /// 已压缩的配置集合
        /// </summary>       
        public byte[] RdpConfigsByte { get; set; }
    }



    /// <summary>
    /// Rdp配置实体
    /// </summary>
    [Serializable]
    public class RdpConfig
    {
        /// <summary>
        /// 键
        /// </summary>
        public string Key { get; set; }

        /// <summary>
        /// 值
        /// </summary>
        public string Value { get; set; }

    }

}
